#include<stdio.h>
#include<string.h>
#include <stdlib.h> //引入标准库，调用随机数函数

int main()
{
	char str1[100] = {'\0'}, str2[100] = {'\0'}, str3[300] = {'\0'};
	for (int i = 0; i < 80; i++)
	{
		char ch ;
		do
		{
			ch = rand() % 128;
		}
		while (ch < 'A' || ch > 'Z');
		str1[i] = ch;

		do
		{
			ch = rand() % 128;
		}
		while (ch < 'A' || ch > 'Z');
		str2[i] = ch;
	}


	printf("str1 = %s\n", str1);
	printf("str2 = %s\n", str2);

	if (strcmp(str1, str2) == 0)
		printf("str1 < str2");
	else
		printf("str1 >= str2");

	strcat(str3, str1);
	strcat(str3, str2);
	printf("str3 = %s\n", str3);
	printf("str3\'s length is %d\n", strlen(str3));
    
    
	printf("A is at %p\n", strchr(str3,'A'));
    
    
    
    
    
    
    
}
